package maple
import maple.ImplicitTest._
import maple.Test.quote

case class Person(name:String)


object ImplicitTest {

  def hello(p:Person) = {println(p.name)}

  implicit def strToPerson(name: String) = new Person(s"p-> ${name}")

  def main(args: Array[String]): Unit = {
    hello("hello")
  }


}


object Test {

  def quote(what:String)(implicit delims:Delimiters) = {
    delims.left + what + delims.right
  }

}

case class Delimiters(left: String,right: String){

}

object FrenchPunctuation {
  implicit val quoteDelimiters = Delimiters("<",">")
}


object Test1 extends App {

  import maple.FrenchPunctuation.quoteDelimiters
  val res = quote("hello")
  println(res)
}

















